#pragma once
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
#include <list>

class MainMenu
{ 
public:
	enum MenuResult { Nothing, Exit, NewGame };  
	struct MenuItem
	{
		public:
			sf::Rect<int> rect;
			MenuResult action;
	};
	MenuResult show(sf::RenderWindow& window);

private:
	MenuResult GetMenuResponse(sf::RenderWindow& window);
	MenuResult HandleClick(int x, int y);
	std::list<MenuItem> _menuItems;
};

